home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2006 May
/
PCWMAY06.iso
/
Software
/
Toolkit
/
Songbird 0.1
/
Songbird_0_1_0.exe
/
chrome
/
content
/
open_url.xul
< prev
next >
Wrap
Extensible Markup Language
|
2006-02-07
|
5KB
|
134 lines
<?xml version="1.0"?>
<!--
/*
//
// BEGIN SONGBIRD GPL
//
// This file is part of the Songbird web player.
//
// Copyright© 2006 Pioneers of the Inevitable LLC
// http://songbirdnest.com
//
// This file may be licensed under the terms of of the
// GNU General Public License Version 2 (the ΓÇ£GPLΓÇ¥).
//
// Software distributed under the License is distributed
// on an ΓÇ£AS ISΓÇ¥ basis, WITHOUT WARRANTY OF ANY KIND, either
// express or implied. See the GPL for the specific language
// governing rights and limitations.
//
// You should have received a copy of the GPL along with this
// program. If not, go to http://www.gnu.org/licenses/gpl.html
// or write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// END SONGBIRD GPL
//
*/
-->
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<?xml-stylesheet href="chrome://rmp_demo/skin" type="text/css"?>
<?xml-stylesheet href="chrome://rmp_demo/content/bindings/bindings.css" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://rmp_demo/locale/rmp_demo.dtd" >
<dialog
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="open_url"
title="&open_url.title;"
buttons="false"
hidechrome="true"
ondialogaccept="return doOK();"
ondialogcancel="return doCancel();"
onload="document.getElementById('rmp_demo_open_url').focus();"
>
<!-- Astounding complexity! -->
<!--windowregion/-->
<stack flex="1">
<vbox class="sb_faceplate" flex="1" onmousedown="onBkgDown( event );" onmouseup="onBkgUp();">
<hbox class="sb_faceplate">
<image id="chrome_nw" class="sb_faceplate"/>
<image id="chrome_n" class="sb_faceplate" flex="1"/>
<image id="chrome_ne" class="sb_faceplate"/>
</hbox>
<hbox class="sb_faceplate" flex="1">
<image id="chrome_w" class="sb_faceplate"/>
<spacer onmousedown="onBkgDown( event );" onmouseup="onBkgUp();" flex="1"/>
<image id="chrome_e" class="sb_faceplate"/>
</hbox>
<hbox class="sb_faceplate">
<image id="chrome_sw" class="sb_faceplate"/>
<image id="chrome_s" class="sb_faceplate" flex="1"/>
<image id="chrome_se" class="sb_faceplate"/>
</hbox>
</vbox>
<vbox class="sb_faceplate" flex="1" onmousedown="onBkgDown( event );" onmouseup="onBkgUp();">
<hbox class="sb_faceplate">
<spacer height="8" onmousedown="onBkgDown( event );" onmouseup="onBkgUp();"/>
</hbox>
<hbox class="sb_faceplate" flex="1">
<spacer width="8" onmousedown="onBkgDown( event );" onmouseup="onBkgUp();" />
<vbox class="sb_faceplate" flex="1" id="chrome_bkgd">
<hbox id="window_top" class="sb_faceplate" >
<label id="app_title" value="&open_url.title;" class="sb_faceplate" onmousedown="onBkgDown( event );" onmouseup="onBkgUp();"/>
<spacer width="5" onmousedown="onBkgDown( event );" onmouseup="onBkgUp();"/>
<spacer flex="1" onmousedown="onBkgDown( event );" onmouseup="onBkgUp();"/>
<spacer width="5" onmousedown="onBkgDown( event );" onmouseup="onBkgUp();"/>
<button id="sysbtn_close" class="sb_faceplate" oncommand="onExit( );" tooltiptext="&tooltip.exit;"/>
</hbox>
<label id="rmp_demo_open_url_label" value="&textbox.rmp_demo_open_url;"/>
<spacer height="5" onmousedown="onBkgDown( event );" onmouseup="onBkgUp();"/>
<hbox>
<textbox class="dialog_textbox" id="rmp_demo_open_url"/>
</hbox>
<spacer height="5" onmousedown="onBkgDown( event );" onmouseup="onBkgUp();"/>
<hbox>
<spacer flex="1" onmousedown="onBkgDown( event );" onmouseup="onBkgUp();"/>
<button id="button_ok" label="&window.ok;" class="dialog_button sb_faceplate" oncommand="if ( doOK() ) onExit( );"/>
<spacer width="5" onmousedown="onBkgDown( event );" onmouseup="onBkgUp();"/>
<button id="button_cancel" label="&window.cancel;" class="dialog_button sb_faceplate" oncommand="if ( doCancel() ) onExit( );"/>
</hbox>
</vbox>
<spacer width="8" onmousedown="onBkgDown( event );" onmouseup="onBkgUp();"/>
</hbox>
<spacer height="10" onmousedown="onBkgDown( event );" onmouseup="onBkgUp();"/>
</vbox>
</stack>
<!-- And intrepid instructions! -->
<script type="application/x-javascript"
src="chrome://rmp_demo/content/rmp_demo.js" />
<script>
<![CDATA[
// Init the text box to the last url played (shrug).
var theTextbox = document.getElementById( "rmp_demo_open_url" );
if ( ( typeof( window.arguments[0] ) != 'undefined' ) && ( typeof( window.arguments[0].URL ) != 'undefined' ) )
{
theTextbox.value = window.arguments[0].URL;
}
function doOK()
{
if ( typeof( window.arguments[0] ) != 'undefined' )
{
window.arguments[0].URL = theTextbox.value;
window.arguments[0].retval = "ok";
}
return true;
}
function doCancel()
{
if ( typeof( window.arguments[0] ) != 'undefined' )
{
window.arguments[0].URL = theTextbox.value;
window.arguments[0].retval = "cancel";
}
return true;
}
]]>
</script>
</dialog>